﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Entity;
using Utils;

public partial class Admin_Pages_AdminInfo : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["login"] != null)
        {
            Admin admin = (Admin)Session["login"];
            lblFullName.Text = admin.FullName;
            lblAddress.Text = admin.Address;
            lblBirthDay.Text = Format.FormatVietNameDateSQLSyntax(admin.BirhDay).ToString();
            lblMobile.Text = admin.Mobile;
            lblEmail.Text = admin.Email;
        }
        else
        {
            Response.Redirect("../Login.aspx");
        }
    }
    protected void btnChange_Click(object sender, EventArgs e)
    {
        Response.Redirect("../Pages/AdminChangeInfo.aspx");
    }
}
